using System;
using System.Data;
using NetMigration.Factories;
using NetMigration.Utilities;

namespace NetMigrationTests
{
    [DbVersion(5)]
    public class CreateTestTable : Migration
    {
        public CreateTestTable()
        {
        }

        //this constuctor is just for mock test
        public CreateTestTable(IMigrationFactory factory) : base(factory)
        {
        }

        public override void Up()
        {
            CreateTable("TestTable", t =>
                                         {
                                             t.AddColumn("Col1", DbType.String);
                                             t.AddColumn("Col2", DbType.String);
                                         });
        }

        public override void Down()
        {
        }
    }

    [DbVersion(6)]
    public class CreateTestTable2 : Migration
    {
        public override void Up()
        {
        }

        public override void Down()
        {
        }
    }


    [DbVersion(7)]
    public class CreateTestTable3 : Migration
    {
        public override void Up()
        {
        }

        public override void Down()
        {
        }
    }
}